Part Number Hot Search : 
2SK1078 0M25V1 BU2614FS IRSF3031 11EQS03L PSE20011 03000 58004
Product Description
Full Text Search
 

To Download AN1253 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1/6 march 2000 AN1253 application note replacing the m28f201 with the m29f002b flash memory contents n introduction n hardware compatibility n software upgrade n other considerations n conclusion introduction this application note will help you to replace the m28f201 in your designs with the m29f002b. note that two types of m29f002b flash memories are equally suitable upgrades for the m28f201: these are the m29f002bb and the m29f002bt which will be referred to generically as the m29f002b in the rest of this application note. upgrading to m29 series flash memories is very straightforward and will bring you the addi- tional benefits of lower power consumption, faster program and erase operations and greater performance. this application note briefly covers both the hardware and software conse- quences of upgrading to the m29f002b and should be read in conjunction with the m29f002b data sheet. the m29f002b is a 5v only flash memory, which uses a single 5v supply voltage for program, erase and read operations. it generates the required program and erase voltages internally and thus does not have a v pp 12v input pin. the m29f002b is also equipped with a program/erase controller which greatly simplifies the task of programming and erasing the flash mem- ory by using internal algorithms instead of requiring the user software to work through every programming and erasing step. this leads to a device with over 100,000 program/erase cycles guaranteed. if the m28f201 flash memories in your application are pro- grammed on programming equipment and subsequently used as read-only-memory (rom) by your target system, then up- grading to the m29f002b flash memory is simply a matter of changing the setting on your programming equipment and making a single minor modification to the pcb layout of your target system. hardware compatibility the m29f002b is offered in the same packages as the m28f201, namely in plcc32 and tsop32 (8 x 20mm). the m29f002b and the m28f201 have the same pin connections in both packages, with the exception of one pin which carries the signal v pp on the m28f201 but the signal rp on the m29f002b. the rp pin on the m29f002b should either be left unconnected or be connected to v cc during normal operations.
AN1253 - application note 2/6 therefore, unless your current design has the v pp /rp pin permanently connected to 5v, you will need to cut or remove the track to that pin. this is the only modification to the pcb layout that will be required in order to upgrade from the m28f201 to the m29f002b flash memory. the maximum supply current i cc that the m29f002b requires from its 5v supply on v cc during program and erase operations is less than the maximum supply current i cc required by the m28f201 during read operations at 10mhz. it should thus be possible to replace the m28f201 by the m29f002b without any changes to the 5v power supply. in fact upgrading to the m29f002b will reduce the power consumption during read operations by half. further power savings will result from the m29f002b not requiring any cur- rent from the 12v supply during program and erase operations. all the bus operations supported by the m28f201 are also supported by the m29f002b. in particular the bus operation required to read the electronic signature of the m28f201 will also allow the electronic sig- nature of the m29f002b to be read. please note that although both devices share the same manufacturer identification code, they have different device codes. no changes will be required to the address and data buses when upgrading from the m28f201 to the m29f002b. stmicroelectronics always recommends that you upgrade to the fastest m29f002b device read speed available (currently 45ns). if the m28f201 you are replacing has a read speed of 90ns or more, then all the ac characteristics of any m29f002b upgrade will be faster or equal. however if you are upgrading from a 70ns m28f201, then it is essential for the compatibility of the read ac characteristics that you up- grade to the 45ns m29f002b. note however that a few write ac characteristics of the 45ns m29f002b are 10ns slower than on the 70ns m28f201. it is very unlikely that such a small difference on t wlax , t elax , t wlwh , t whlw and t ehel will be critical to your design upgrade, but if this is the case you will need to insert an additional microprocessor wait state during bus write operations to the m29f002b. software upgrade both the m29f002b and the m28f201 power up in read mode. in this mode both devices behave like roms and each bus read operation outputs the content of the memory array at the selected memory ad- dress. if your target system never changes mode but assumes that the flash memory initializes in read mode and subsequently behaves like a rom, then you do not need to modify your target software when upgrading from the m28f201 to the m29f002b flash memory. if however your application requires the flash memory to change mode (so that it may be programmed, erased, have its electronic signature read and be returned to read mode) then you will need to upgrade your application software. the mechanism for changing the behavior (or mode) of the m29f002b and the content of its memory array is similar to that used by the m28f201: special sequences of bus write oper- ations are recognized as commands, which cause the m29f002b to start programming or erasing or to switch mode. however there are three main differences between the m29f002b and the m28f201: 1. different command sets. the m29f002b supports a block erase as well as a chip erase command. the m29f002b does not require verify commands to be used in conjunction with the program and erase commands: the successful completion of the program and erase operations are verified using the status register instead. the m29f002b also offers the additional functionality of an erase suspend command, which allows parts of the flash memory not being erased to be accessed before the block erase operation has completed. 2. different sequences of bus write operations are recognized as commands. typically the m29f002b re- quires longer sequences of bus write operations for each command. the sequences are longer on the m29f002b because they contain coded cycles for added security against accidental programming or erasure due to a system software or hardware fault. 3. different program and erase algorithms. the program/erase controller inside the m29f002b takes care of sending the right current pulses to the cells being programmed and erased, of checking whether the program and erase operation have completed and of programming all cells to 0 before erasing the memory. this makes the user software algorithm required to program and erase the flash memory
3/6 AN1253 - application note much simpler; it also means that programming or erasing the m29f002b flash memory places a far smaller computational burden on your system micro controller or microprocessor. the consequence of these differences between the m29f002b and the m28f201 flash memories is that you will need to upgrade the component of your application software which interfaces to the flash mem- ory. this application note will describe the two simplest methods for upgrading your application software: use the m29f002b software drivers provided by stmicroelectronics or modify your application code di- rectly using the guidelines provided below. stmicroelectronics application note an1193 describes software drivers to read, program and erase the m29f002b. source files are provided for the drivers in c code, and the application note describes the hardware platform specific functions that the user needs to write in order to use the software drivers. the application software can then reset, read, program, erase and check the electronic signature of the flash memory by calling the library c functions flashreadreset(), flashread(), flashprogram(), flashchip- erase() and flashautoselect(). the library functions take care of checking whether the program and erase operations complete successfully. even if your application requires you to adapt your current application software, you may find application note an1193 useful for understanding the operation of the m29f002b. however this application note aims to provide you with sufficient information to enable you to upgrade your application software for the m29f002b: note that you will need to refer to the m29f002b data sheet for the details of the bus write operation sequences recognized as commands. reading the electronic signature. in order to read the electronic signature of the m29f002b, the user first needs to issue the auto select command to place the device in auto select mode. the manufacturer and device identification codes may then be read from the flash memory by setting address bit a1 to v il and address bit a0 to v il or v ih respectively (this is similar to reading the manufacturer and device code from the m28f201). the auto select mode also allows the user to read the block protection status of the m29f002b. to exit the auto select mode, the user should issue the read/reset command. the status register. the status register bits indicate whether a program or erase operation is on-go- ing, has failed or was successful. bus read operations cause the status register to be output by the m29f002b while program and erase operations are on-going or have failed. both the data polling bit (dq7) and the data toggle bit (dq6) indicate whether the operation is on-going or has completed. the er- ror bit (dq5) will be set if the operation failed to complete successfully. on successful completion of a pro- gram or erase operation, the m29f002b will stop to output the status register: bus read operations will output the content of the memory array instead. this is used by the data polling and the data toggle flow- charts of the m29f002b data sheet to determine when an operation has completed, and whether it was successful or not. programming a flash memory address. the data toggle flowchart of the m29f002b data sheet leads to the algorithm described in figure 1 for programming an address of the m29f002b. after issuing the program command, the user keeps on checking the error bit and the data toggle bit of the status register until completion of the operation. if the error bit is set before completion, then the program operation has failed. otherwise the operation has completed successfully. note that, like the m28f201, the m29f002b cannot change a bit from 0 to 1 by programming. your application software should therefore check that this is not being attempted prior to issuing the program command. erasing the flash memory. the data toggle flowchart of the m29f002b data sheet leads to the algo- rithm described in figure 2 for erasing the whole memory array of the m29f002b. after issuing the chip erase command, the user keeps on checking the error bit and the data toggle bit of the status register until completion of the operation. if the error bit is set before completion, then the erase operation has failed. otherwise the operation has completed successfully. note that it is not necessary to program each cell of the m29f002b memory array to 0 before erasing. this is taken care of by the internal program/ erase controller of the m29f002b flash memory.
AN1253 - application note 4/6 figure 1. m29 series program flowchart other considerations this section outlines a number of differences between the m28f201 and the m29f002b which may be relevant to your upgrade design: 1. the allowed range for the identification voltage v id on the m29f002b (11.5v to 12.5v) is more restric- tive than on the m28f201. if the identification voltage is to be used, care should be taken that it is con- trolled to remain within the range allowed on the m29f002b. 2. the minimum lockout voltage v lko is higher on the m29f002b than it is on the m28f201. this allows the m29f002b to offer better protection against accidental programming and erasure when the power supply is being switched on or off. 3. the absolute maximum rating for v cc is less on the m29f002b than on the m28f201 (6v instead of 7v). care should be taken to ensure that the supply voltage on v cc never exceeds the maximum rating of the m29f002b. 4. the m29f002b takes up to 10 m s to be ready following a read/reset command issued during a block erase command or after an erase or program error. the user software should not attempt to access the m29f002b during this 10 m s period. note that this 10 m s period is similar to the 6 m s required by the m28f201 to be ready following a command issued to change mode. 5. the m29f002b takes up to 50 m s from the moment v cc is applied to become ready. this initial delay of 50 m s must be taken into account when upgrading from the m28f201 to the m29f002b; this may require the boot sequence of the target system to be modified so that the m29f002b is not accessed during the initial 50 m s. ai03400 read dq5 & dq6 read dq6 fail pass dq6 = toggle no no yes yes dq5 = 1 no yes dq6 = toggle issue program command read dq6
5/6 AN1253 - application note figure 2. m29 series erase flowchart 6. under certain conditions the memory arrays of both the m28f201 and m29f002b will be left in an in- determinate state, even though the devices continue to respond correctly to commands written to them. in the case of the m29f002b, this will occur either if a device reset (caused by the supply voltage falling below the lockout voltage v lko or by rp being pulled down to v il ) occurs during program or erase, or if a read/reset command is issued during a block erase operation. in both cases the user is advised to erase the parts of the memory array left in an indeterminate state before reprogramming them. 7. the memory array of the m29f002b is organized in 7 blocks of varying sizes which may be erased in- dividually as well as simultaneously. whereas the chip erase command erases the whole memory ar- ray at once, the block erase command can be used to erase only a part of the memory array (consisting of one or more memory blocks). for more information on this alternative to erasing the whole memory array at once, please refer to the m29f002b data sheet and to application note an1193 which provides the library c function flashblockerase() for the m29f002b flash memory. note that the differences be- tween the m29f002bb and m29f002bt flash memories are only relevant if you intend to use the block erase command. conclusion upgrading from the m28f201 to the m29f002b will only require a single modification to your target hard- ware system. your application software will probably need to be upgraded, either by using software drivers provided by stmicroelectronics or by updating your program and erase algorithms. you will then enjoy a number of benefits which include lower power consumption, faster program and erase operations and in- creased flash memory performance. ai03401 read dq5 & dq6 read dq6 fail pass dq6 = toggle no no yes yes dq5 = 1 no yes dq6 = toggle issue chip erase command read dq6
AN1253 - application note 6/6 if you have any questions or suggestion concerning the matters raised in this document please send them to the following electronic mail address: ask.memory@st.com (for general enquiries) please remember to include your name, company, location, telephone number and fax number. information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the co nsequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications mentioned in this publicati on are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics prod ucts are not authorized for use as critical components in life support devices or systems without express written approval of stmicroelectro nics. the st logo is registered trademark of stmicroelectronics a 2000 stmicroelectronics - all rights reserved all other names are the property of their respective owners. stmicroelectronics group of companies australia - brazil - china - finland - france - germany - hong kong - india - italy - japan - malaysia - malta - morocco - singapore - spain - sweden - switzerland - united kingdom - u.s.a. http://www.st.com


▲Up To Search▲   

 
Price & Availability of AN1253

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X